package week02.day03;

import java.util.Scanner;

/**
 *
 */

public class 多分支语句中的if语句 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入分数");
        int fenshu = sc.nextInt();
        if (fenshu>100||fenshu<0){
            System.out.println("成绩有误");
        } else if (fenshu>=90) {
            System.out.println("成绩优秀");
        } else if (fenshu>=80||fenshu>=70) {
            System.out.println("成绩良好");
        } else if (fenshu>=60) {
            System.out.println("成绩及格");
        }
        else
            System.out.println("成绩不合格");
        }
    }
